const proxy = {
	"/dev/": {
		target: "https://shop.sdamdyy.cn/dev",
		changeOrigin: true,
		rewrite: (path: string) => path.replace(/^\/dev/, ""),
	},

	"/prod/": {
		target: "https://show.cool-admin.com",
		changeOrigin: true,
		rewrite: (path: string) => path.replace(/^\/prod/, "/api"),
	},
};

const value = "dev";
const host = proxy[`/${value}/`]?.target;

export { proxy, host, value };
